/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.pc9.pswing.util;

import br.com.pc9.pswing.components.filebrowser.PFileView;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.Icon;

/**
 *
 * @author paulocanedo
 */
public class MacOSXUtil implements OperationSystemUtilInterface {

    @Override
    public List<PFileView> getFavoritePlaces() throws IOException {
        return new ArrayList<PFileView>();
    }

    @Override
    public UserFolders getUserFolders() throws IOException {
        return new UserFolders() {
            
            private String login = "paulocanedo";

            @Override
            public File getDesktopFolder() throws Exception {
                return new File("/Users/" + login, "Desktop");
            }

            @Override
            public File getDocumentFolder() throws Exception {
                return new File("/Users/" + login, "Documents");
            }

            @Override
            public File getMusicFolder() throws Exception {
                return new File("/Users/" + login, "Music");
            }

            @Override
            public File getPicturesFolder() throws Exception {
                return new File("/Users/" + login, "Pictures");
            }

            @Override
            public File getPublicShareFolder() throws Exception {
                return new File("/Users/" + login, "Public");
            }

            @Override
            public File getVideosFolder() throws Exception {
                return new File("/Users/" + login, "Videos");
            }

            @Override
            public File getTemplateFolder() throws Exception {
                return null;
            }

            @Override
            public File getDownloadsFolder() throws Exception {
                return new File("/Users/" + login, "Downloads");
            }
        };
    }

    @Override
    public String getThemeName() throws Exception {
        return "Aqua";
    }

    @Override
    public Icon getSystemIcon(String category, String name, int size) {
        return GenericIconFactory.getSystemIcon(category, name, size);
    }
    
}
